/**
 * 2009-10-27 下午04:38:53 
 * esignature
 * com.smc.server.impl
 * HospitalServiceImpl
 */
package com.smc.server.impl;

import java.util.List;

import com.smc.dao.HospitalDao;
import com.smc.domain.model.Hospital;
import com.smc.server.HospitalService;

/**
 * @author chenheng
 * @version 0.0.1
 * 医院服务接口实现
 */
public class HospitalServiceImpl implements HospitalService {
	
	private HospitalDao hospitalDao ;
	
	public HospitalDao getHospitalDao() {
		return hospitalDao;
	}

	public void setHospitalDao(HospitalDao hospitalDao) {
		this.hospitalDao = hospitalDao;
	}

	public void save_AD_IG_SA_hospital(Hospital hospital) {
		hospitalDao.saveHospital(hospital);
	}

	public List<Hospital> fetch_OP_HO_FE_hospital() {
		List<Hospital> hl = hospitalDao.fetch_OP_HO_FE_hospital();
		return hl;
	}

	public int count_AD_IG_FE_hospital() {
		return hospitalDao.countHospital();
	}

	public List<Hospital> fetch_AD_IG_FE_hospital(int pageIndex, int pageSize) {
		return hospitalDao.fetchAllHospital(pageIndex, pageSize);
	}
	
}
